from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('rewards', '0004_remove_pointtransaction_user_id_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='RewardItem',
            fields=[
                ('item_id', models.AutoField(primary_key=True, serialize=False, verbose_name='商品唯一ID', db_comment='商品唯一ID')),
                ('name', models.CharField(max_length=100, verbose_name='商品名称', db_comment='商品名称')),
                ('points_cost', models.IntegerField(verbose_name='所需积分', db_comment='所需积分')),
                ('description', models.CharField(max_length=255, null=True, blank=True, verbose_name='描述', db_comment='描述')),
                ('stock', models.IntegerField(default=0, verbose_name='库存', db_comment='库存')),
            ],
            options={
                'verbose_name': '积分商品',
                'verbose_name_plural': '积分商品',
                'db_table': 'xiangsu_reward_items',
                'db_table_comment': '积分商城商品表',
            },
        ),
    ]